package com.smart.campus.school.mapper;

import java.util.List;
import com.smart.campus.school.domain.ExamRoomStudents;
import org.springframework.stereotype.Repository;

/**
 * 考场学生安排Mapper接口
 * 
 * @author Zhihe.Li
 * @date 2020-06-06
 */
@Repository
public interface ExamRoomStudentsMapper 
{
    /**
     * 查询考场学生安排
     * 
     * @param id 考场学生安排ID
     * @return 考场学生安排
     */
    public ExamRoomStudents selectExamRoomStudentsById(Long id);

    /**
     * 查询考场学生安排列表
     * 
     * @param examRoomStudents 考场学生安排
     * @return 考场学生安排集合
     */
    public List<ExamRoomStudents> selectExamRoomStudentsList(ExamRoomStudents examRoomStudents);

    /**
     * 新增考场学生安排
     * 
     * @param examRoomStudents 考场学生安排
     * @return 结果
     */
    public int insertExamRoomStudents(ExamRoomStudents examRoomStudents);

    /**
     * 修改考场学生安排
     * 
     * @param examRoomStudents 考场学生安排
     * @return 结果
     */
    public int updateExamRoomStudents(ExamRoomStudents examRoomStudents);

    /**
     * 删除考场学生安排
     * 
     * @param id 考场学生安排ID
     * @return 结果
     */
    public int deleteExamRoomStudentsById(Long id);

    /**
     * 批量删除考场学生安排
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteExamRoomStudentsByIds(String[] ids);

    public void batchInsertInfo(List<ExamRoomStudents> list);

    public int checkScheduleStudents(Long scheduleId);
}
